package com.atguigu.spzx.manager;

import com.atguigu.spzx.common.handler.config.MybatisPlusConfig;
import com.atguigu.spzx.log.annation.EnableSysOperLog;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * title:
 * author: zgl
 * date: 2023/12/24
 * description：
 */
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//排除数据库强制启动
@SpringBootApplication(exclude = MybatisPlusConfig.class)
@EnableTransactionManagement
@EnableScheduling
@EnableSysOperLog
@MapperScan(basePackages = {"com.atguigu.spzx.log.mapper","com.atguigu.spzx.manager.mapper"})
@EnableAsync//允许异步
//@ComponentScan(basePackages = {"com.atguigu.spzx"})
public class ManagerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class,args);
    }
}
